import { request } from '@/utils';

/** 获取文章发布页面频道选项 */
export const channelsAPI = () => request.get('/channels');

/** 发布文章 */
export const articlesAPI = (data) => request.post('/mp/articles?draft=false', data);